#coding:utf-8

def prline(msg):
    l = "-" * 20
    s = "%s| %s |%s" % (l, msg, l)
    print s

if __name__ == "__main__":
    from tolua import convert
    data = {}
    data['positive_int'] = 99
    data['negative_int'] = -30

    data['positive_float'] = 50.28
    data['negative_float'] = -32.55

    data['normal_str'] = "Hello belle! 这是普通字符串"
    data['unicode_str'] = u"Hi! 这是unicode字符串"

    data['bool_true'] = True
    data['bool_false'] = False

    data['None'] = None

    data['list'] = [1, 2.38, True, None, "hello list"]
    data['tuple'] = [1, 2.38, True, "hello tuple"]
    data['list_tuple'] = [(1, 2.38), (True, "hello list")]

    data['dict'] = {'list_in_dict': [1, 2, (4, 5)], 'int_in_dict': 250}

    prline("original python data")
    print data

    prline("lua string")
    print convert(data)
